function StageAssistant() {
	/* this is the creator function for your stage assistant object */
}

StageAssistant.prototype.setup = function() {
	/* this function is for setup tasks that have to happen when the stage is first created */
	this.controller.pushScene('GameInit');
	
};

StageAssistant.prototype.showScene = function (directory, sceneName, arguments) {
	if (arguments === undefined) {
		this.controller.pushScene({name: sceneName,
					       		   sceneTemplate: directory + "/" + sceneName + "-scene"});		
	} else {
		this.controller.pushScene({name: sceneName,
					       		   sceneTemplate: directory + "/" + sceneName + "-scene"},
								   arguments);				
	}
};

StageAssistant.prototype.handleCommand = function(event) {	
	  if (event.type === Mojo.Event.command) {
	
		  Mojo.Log.info("Stage Event::"+ event.command);
		  switch (event.command) {
		  case 'goBack':
			    this.controller.popScene();
			    break;
	      }
	  }
	} ;